<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>邮箱提示</title>
  <style>
    * {
      margin: 0;
      padding: 0;
    }

    li {
      list-style: none;
    }

    .wrapper {
      margin: 100px auto;
      width: 400px;
    }

    #email-input {
      width: 400px;
      height: 40px;
      font-size: 20px;
      border: 1px solid #ccc;
      text-indent: 20px;
    }

    #email-input:focus {
      outline: none;
    }

    #email-sug-wrapper {
      width: 400px;
      border: 1px solid #ccc;
      border-top: none;
      display: none;
    }

    #email-sug-wrapper li {
      height: 35px;
      line-height: 35px;
      text-indent: 20px;
      color: #979797;
      cursor: pointer;
    }

    #email-sug-wrapper li:hover {
      background: rgb(153, 199, 245);
    }

    #email-sug-wrapper li.active {
      background: rgb(245, 165, 236);
    }
  </style>
</head>

<body>
  <div class="wrapper">
    <input id="email-input" type="text">
    <ul id="email-sug-wrapper" class="email-sug"></ul>
  </div>

  <script>
    // 邮箱后缀List参考
    var postfixList = ['163.com', 'gmail.com', '126.com', 'qq.com', '263.net'];
    const emailInput = document.querySelector('#email-input');
    const emailSug = document.querySelector('#email-sug-wrapper');
    // let lis
    // let currentIndex = 0
    // let sugLength = postfixList.length
  </script>
  <!-- <script src="./script1.js"></script> -->
  <!-- <script src="./script2.js"></script> -->
  <!-- <script src="./script3.js"></script> -->
  <script src="./script4.js"></script>
</body>

</html>